﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ClienteMVC.Dominio.Cita>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.ui.datepicker-es.js" type="text/javascript"></script>
    <link href="../../Content/start/jquery-ui-1.8.1.custom.css" rel="stylesheet" type="text/css" />
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <fieldset>
        <legend>CITA - Datos Principales </legend>
        <table border="0" cellpadding="1" cellspacing="1" style="width: 500PX">
            <tr>
                <td width="220" class="CabeceraLabel">
                        Cliente
                </td>
                <td colspan="2" width="280">
                    <%: Html.DropDownList("listaCliente", ViewData["listaCliente"] as SelectList)%>
                </td>
            </tr>
            <tr>
                <td width="220" class="CabeceraLabel">
                    Paciente
                </td>
                <td colspan="2" width="280">
                    <%: Html.DropDownList("listaPaciente", ViewData["listaPaciente"] as SelectList)%>
                </td>
            </tr>
            <tr>
                <td width="220" class="CabeceraLabel">
                    Veterinario
                </td>
                <td colspan="2" width="280">
                    <%: Html.DropDownList("listaveterinario", ViewData["listaveterinario"] as SelectList)%>
                </td>
            </tr>
            <tr>
                <td width="220" class="CabeceraLabel">
                    Productos
                </td>
                <td colspan="2" width="280">
                    <%: Html.DropDownList("listaproducto", ViewData["listaproducto"] as SelectList)%>
                </td>
            </tr>
            <tr>
                <td width="220" class="CabeceraLabel">
                    Estado
                </td>
                <td colspan="2" width="280">
                    <%: Html.DropDownList("listaEstados", ViewData["listaEstados"] as SelectList)%>
                </td>
            </tr>
            <tr>
                <td width="220" class="CabeceraLabel">
                    Programacion de Cita
                </td>
                <td width="200PX">
                    <%: Html.EditorFor(model => model.FechaCita)%>
                    <%: Html.ValidationMessageFor(model => model.FechaCita) %>
                </td>
                <td width="80PX">
                    <%: Html.DropDownList("listahoras", ViewData["listahoras"] as SelectList)%>
                </td>
            </tr>
        </table>
        <p>
            <input type="submit" value="Registrar Cita" />
        </p>
    </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("Regresar", "Index") %>
    </div>
</asp:Content>
